<?php
	include_once("dataprovider.php");
	$pass = $_POST["txtPass"];
	$pass1 = $_POST["txtConfirm"];
	
	$salt = "U" .$pass . "P";
	$h_pass = sha1($salt, false);
	
	$sql = "update Users set _password=X'{$h_pass}' where _username='admin'";
	$isOk = DataProvider::executeQuery($sql);
	if($isOk!=false )
		header("Location: ../index.php");
?>